how to convert list of string to single string in c#

69

convert list of strings to string -

string Something = string.Join(",", MyList);

how to convert list of string to single string in c# -

string Something = string.Join(",", MyList);

List<string> names = new List<string>() { "John", "Anna", "Monica" };
var result = String.Join(", ", names.ToArray());

Comments

Submit
0 Comments